cmake_minimum_required(VERSION 3.10)
project(utilpath)
add_executable(parsepath parsepath.cpp utils_path.cpp utils_path.h)

enable_testing()

add_test(NAME Runs1 COMMAND parsepath "/abc/def.xyz")
add_test(NAME Runs2 COMMAND parsepath "/abc/def/")
add_test(NAME Runs3 COMMAND parsepath "/abc/def")
add_test(NAME Runs4 COMMAND parsepath "/abc")
add_test(NAME Runs5 COMMAND parsepath "abc")
add_test(NAME Runs6 COMMAND parsepath "/")
